from selenium import webdriver
import random


driver = webdriver.Chrome()

for i in range(1, 11):
    driver.get("http://127.0.0.1:8099/auth/register")
    user = "tom" + str(i)
    driver.find_element_by_id("email").send_keys(user+"@mail.com")
    driver.find_element_by_id("username").send_keys(user)
    driver.find_element_by_id("password").send_keys("123")
    driver.find_element_by_id("password2").send_keys("123")
    driver.find_element_by_id("submit").click()

driver.close()